package com.owen.spring.cloud.seata.at;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * seata 分布式事务失败通知，需要实现 FailureHandler 接口
 * https://juejin.cn/post/7016891886556332046
 */
@EnableFeignClients
@EnableDiscoveryClient
@EnableWebMvc
@MapperScan("com.owen.spring.cloud.seata.at.mapper")
@SpringBootApplication
public class SeataAtCommonApplication {

    public static void main(String[] args) {
        SpringApplication.run(SeataAtCommonApplication.class,args);
    }

}
